<!doctype html>
<html>
<head>
<meta charset="utf-8">
<link href="/Public/admin/css/style.css" rel="stylesheet">
<link href="/Public/admin/css/font-awesome.min.css" rel="stylesheet">
<link href="/Public/plugin/select2/select2.css" rel="stylesheet">
<title>{$title}</title>
</head>

<body>
    <div class="breadNav">
        <ul class="breadNavBar">
            <li><i class="icon-home" style="font-size:16px"></i></li>
            <li><a href="javascript:;" onClick="parent.location.reload('/Admin/Index/index');">首页</a></li>
            <li>&gt;</li>
            <li><a href="/Admin/Books/index">书籍管理</a></li>
            <li>&gt;</li>
            <li>书籍列表</li>
        </ul>
    </div>
    <div style="clear:both;"></div>
    <div class="filter">
        <div class="form-group">
            <a class="btn btn-primary btn-lg" id="addBtn" href="/Admin/Books/addBook"><i class="icon-plus"></i>&nbsp;添加书籍</a>
        </div>
    </div>
    <div class="tableBox">
    <table class="table" style="">
        <thead>
            <tr>
                <th width="3%"></th>
                <th>ID</th>
                <th class="w_20">书名</th>
                <th>封面</th>
                <th>价格</th>
                <th>被购数量</th>
                <th class="time">添加时间</th>
                <th>操作</th>
            </tr>
        </thead>
        <tbody id="dataInfo">
        	<volist name="bookList" id="bookList">
            <tr>
                <td><input type="checkbox" name="id[]" value="{$bookList.id}"></td>
                <td>{$key+1}</td>
                <td class="leftT">{$bookList.name}</td>
                <td class="leftT"><img src="{$bookList.cover}" width="100" height="150"></td>
                <td>
                    {$bookList.price}
                </td>
                <td>{$bookList.number}</td>
                <td>{$bookList.addtime|date="Y-m-d H:i:s",###}</td>
                <td>
                    <a class="btn btn-primary" onclick="tanchu();" href="/Admin/Books/delBooks/id/{$bookList.id}" ><i class="icon-remove"></i>&nbsp;删除</a>
                	<a class="btn btn-primary exit" href="/Admin/Books/editBooks/id/{$bookList.id}"><i class="icon-edit"></i>&nbsp;编辑</a>
                </td>
            </tr>
            </volist>
            <tr>
                <td><input type="checkbox" id="areaSelAll"></td>
                <td colspan="10" align="left">
                <a class="btn btn-table" href="javascript:void(0);" class="allDel" onclick="allDel('/Admin/Books/allDel');"><i class="icon-trash"></i>&nbsp;批量删除</a>
                </td>
            </tr>
        </tbody>
    </table>
    </div>
	<div class="pageBarBox">
		{$page}
	</div>
</body>
<script src="/Public/js/jquery.min.js?ver=1.8.3"></script>
<script src="/Public/admin/js/main.js"></script>
<script src="/Public/js/titleMes.js"></script>
<script src="/Public/plugin/select2/select2.min.js"></script>
<script src="/Public/plugin/layer/layer.js"></script>
<script>
window.alert = function(msg){
	layer.alert(msg);
};
function tanchu(){
    if(confirm("确认要删除吗？")){
        return true;
    }else{
        return false;
    }
}
</script>
</html>
